0 Prolog
↳1 PrologToPiTRSProof (⇒, 47 ms)
↳2 PiTRS
↳3 DependencyPairsProof (⇔, 51 ms)
↳4 PiDP
↳5 DependencyGraphProof (⇔, 0 ms)
↳6 AND
↳7 PiDP
↳8 UsableRulesProof (⇔, 0 ms)
↳9 PiDP
↳10 PiDPToQDPProof (⇒, 19 ms)
↳11 QDP
↳12 UsableRulesReductionPairsProof (⇔, 56 ms)
↳13 QDP
↳14 PisEmptyProof (⇔, 0 ms)
↳15 YES
↳16 PiDP
↳17 UsableRulesProof (⇔, 0 ms)
↳18 PiDP
↳19 PiDPToQDPProof (⇒, 0 ms)
↳20 QDP
↳21 UsableRulesReductionPairsProof (⇔, 0 ms)
↳22 QDP
↳23 PisEmptyProof (⇔, 0 ms)
↳24 YES
↳25 PiDP
↳26 UsableRulesProof (⇔, 0 ms)
↳27 PiDP
↳28 PiDPToQDPProof (⇒, 5 ms)
↳29 QDP
↳30 MRRProof (⇔, 21 ms)
↳31 QDP
↳32 PisEmptyProof (⇔, 0 ms)
↳33 YES
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U3_ga(L, H, T, append2_in_ag(parts(V, .(H, U)), is(sum(L))))
append2_in_ag(parts([], Y), is(sum(Y))) → append2_out_ag(parts([], Y), is(sum(Y)))
append2_in_ag(parts(.(H, X), Y), is(sum(.(H, Z)))) → U1_ag(H, X, Y, Z, append2_in_ag(parts(X, Y), is(sum(Z))))
U1_ag(H, X, Y, Z, append2_out_ag(parts(X, Y), is(sum(Z)))) → append2_out_ag(parts(.(H, X), Y), is(sum(.(H, Z))))
U3_ga(L, H, T, append2_out_ag(parts(V, .(H, U)), is(sum(L)))) → U4_ga(L, H, T, V, U, append1_in_ga(parts(V, U), is(sum(W))))
append1_in_ga(parts([], Y), is(sum(Y))) → append1_out_ga(parts([], Y), is(sum(Y)))
append1_in_ga(parts(.(H, X), Y), is(sum(.(H, Z)))) → U2_ga(H, X, Y, Z, append1_in_ga(parts(X, Y), is(sum(Z))))
U2_ga(H, X, Y, Z, append1_out_ga(parts(X, Y), is(sum(Z)))) → append1_out_ga(parts(.(H, X), Y), is(sum(.(H, Z))))
U4_ga(L, H, T, V, U, append1_out_ga(parts(V, U), is(sum(W)))) → U5_ga(L, H, T, perm_in_ga(W, T))
U5_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U3_ga(L, H, T, append2_in_ag(parts(V, .(H, U)), is(sum(L))))
append2_in_ag(parts([], Y), is(sum(Y))) → append2_out_ag(parts([], Y), is(sum(Y)))
append2_in_ag(parts(.(H, X), Y), is(sum(.(H, Z)))) → U1_ag(H, X, Y, Z, append2_in_ag(parts(X, Y), is(sum(Z))))
U1_ag(H, X, Y, Z, append2_out_ag(parts(X, Y), is(sum(Z)))) → append2_out_ag(parts(.(H, X), Y), is(sum(.(H, Z))))
U3_ga(L, H, T, append2_out_ag(parts(V, .(H, U)), is(sum(L)))) → U4_ga(L, H, T, V, U, append1_in_ga(parts(V, U), is(sum(W))))
append1_in_ga(parts([], Y), is(sum(Y))) → append1_out_ga(parts([], Y), is(sum(Y)))
append1_in_ga(parts(.(H, X), Y), is(sum(.(H, Z)))) → U2_ga(H, X, Y, Z, append1_in_ga(parts(X, Y), is(sum(Z))))
U2_ga(H, X, Y, Z, append1_out_ga(parts(X, Y), is(sum(Z)))) → append1_out_ga(parts(.(H, X), Y), is(sum(.(H, Z))))
U4_ga(L, H, T, V, U, append1_out_ga(parts(V, U), is(sum(W)))) → U5_ga(L, H, T, perm_in_ga(W, T))
U5_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
PERM_IN_GA(L, .(H, T)) → U3_GA(L, H, T, append2_in_ag(parts(V, .(H, U)), is(sum(L))))
PERM_IN_GA(L, .(H, T)) → APPEND2_IN_AG(parts(V, .(H, U)), is(sum(L)))
APPEND2_IN_AG(parts(.(H, X), Y), is(sum(.(H, Z)))) → U1_AG(H, X, Y, Z, append2_in_ag(parts(X, Y), is(sum(Z))))
APPEND2_IN_AG(parts(.(H, X), Y), is(sum(.(H, Z)))) → APPEND2_IN_AG(parts(X, Y), is(sum(Z)))
U3_GA(L, H, T, append2_out_ag(parts(V, .(H, U)), is(sum(L)))) → U4_GA(L, H, T, V, U, append1_in_ga(parts(V, U), is(sum(W))))
U3_GA(L, H, T, append2_out_ag(parts(V, .(H, U)), is(sum(L)))) → APPEND1_IN_GA(parts(V, U), is(sum(W)))
APPEND1_IN_GA(parts(.(H, X), Y), is(sum(.(H, Z)))) → U2_GA(H, X, Y, Z, append1_in_ga(parts(X, Y), is(sum(Z))))
APPEND1_IN_GA(parts(.(H, X), Y), is(sum(.(H, Z)))) → APPEND1_IN_GA(parts(X, Y), is(sum(Z)))
U4_GA(L, H, T, V, U, append1_out_ga(parts(V, U), is(sum(W)))) → U5_GA(L, H, T, perm_in_ga(W, T))
U4_GA(L, H, T, V, U, append1_out_ga(parts(V, U), is(sum(W)))) → PERM_IN_GA(W, T)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U3_ga(L, H, T, append2_in_ag(parts(V, .(H, U)), is(sum(L))))
append2_in_ag(parts([], Y), is(sum(Y))) → append2_out_ag(parts([], Y), is(sum(Y)))
append2_in_ag(parts(.(H, X), Y), is(sum(.(H, Z)))) → U1_ag(H, X, Y, Z, append2_in_ag(parts(X, Y), is(sum(Z))))
U1_ag(H, X, Y, Z, append2_out_ag(parts(X, Y), is(sum(Z)))) → append2_out_ag(parts(.(H, X), Y), is(sum(.(H, Z))))
U3_ga(L, H, T, append2_out_ag(parts(V, .(H, U)), is(sum(L)))) → U4_ga(L, H, T, V, U, append1_in_ga(parts(V, U), is(sum(W))))
append1_in_ga(parts([], Y), is(sum(Y))) → append1_out_ga(parts([], Y), is(sum(Y)))
append1_in_ga(parts(.(H, X), Y), is(sum(.(H, Z)))) → U2_ga(H, X, Y, Z, append1_in_ga(parts(X, Y), is(sum(Z))))
U2_ga(H, X, Y, Z, append1_out_ga(parts(X, Y), is(sum(Z)))) → append1_out_ga(parts(.(H, X), Y), is(sum(.(H, Z))))
U4_ga(L, H, T, V, U, append1_out_ga(parts(V, U), is(sum(W)))) → U5_ga(L, H, T, perm_in_ga(W, T))
U5_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
PERM_IN_GA(L, .(H, T)) → U3_GA(L, H, T, append2_in_ag(parts(V, .(H, U)), is(sum(L))))
PERM_IN_GA(L, .(H, T)) → APPEND2_IN_AG(parts(V, .(H, U)), is(sum(L)))
APPEND2_IN_AG(parts(.(H, X), Y), is(sum(.(H, Z)))) → U1_AG(H, X, Y, Z, append2_in_ag(parts(X, Y), is(sum(Z))))
APPEND2_IN_AG(parts(.(H, X), Y), is(sum(.(H, Z)))) → APPEND2_IN_AG(parts(X, Y), is(sum(Z)))
U3_GA(L, H, T, append2_out_ag(parts(V, .(H, U)), is(sum(L)))) → U4_GA(L, H, T, V, U, append1_in_ga(parts(V, U), is(sum(W))))
U3_GA(L, H, T, append2_out_ag(parts(V, .(H, U)), is(sum(L)))) → APPEND1_IN_GA(parts(V, U), is(sum(W)))
APPEND1_IN_GA(parts(.(H, X), Y), is(sum(.(H, Z)))) → U2_GA(H, X, Y, Z, append1_in_ga(parts(X, Y), is(sum(Z))))
APPEND1_IN_GA(parts(.(H, X), Y), is(sum(.(H, Z)))) → APPEND1_IN_GA(parts(X, Y), is(sum(Z)))
U4_GA(L, H, T, V, U, append1_out_ga(parts(V, U), is(sum(W)))) → U5_GA(L, H, T, perm_in_ga(W, T))
U4_GA(L, H, T, V, U, append1_out_ga(parts(V, U), is(sum(W)))) → PERM_IN_GA(W, T)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U3_ga(L, H, T, append2_in_ag(parts(V, .(H, U)), is(sum(L))))
append2_in_ag(parts([], Y), is(sum(Y))) → append2_out_ag(parts([], Y), is(sum(Y)))
append2_in_ag(parts(.(H, X), Y), is(sum(.(H, Z)))) → U1_ag(H, X, Y, Z, append2_in_ag(parts(X, Y), is(sum(Z))))
U1_ag(H, X, Y, Z, append2_out_ag(parts(X, Y), is(sum(Z)))) → append2_out_ag(parts(.(H, X), Y), is(sum(.(H, Z))))
U3_ga(L, H, T, append2_out_ag(parts(V, .(H, U)), is(sum(L)))) → U4_ga(L, H, T, V, U, append1_in_ga(parts(V, U), is(sum(W))))
append1_in_ga(parts([], Y), is(sum(Y))) → append1_out_ga(parts([], Y), is(sum(Y)))
append1_in_ga(parts(.(H, X), Y), is(sum(.(H, Z)))) → U2_ga(H, X, Y, Z, append1_in_ga(parts(X, Y), is(sum(Z))))
U2_ga(H, X, Y, Z, append1_out_ga(parts(X, Y), is(sum(Z)))) → append1_out_ga(parts(.(H, X), Y), is(sum(.(H, Z))))
U4_ga(L, H, T, V, U, append1_out_ga(parts(V, U), is(sum(W)))) → U5_ga(L, H, T, perm_in_ga(W, T))
U5_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
APPEND1_IN_GA(parts(.(H, X), Y), is(sum(.(H, Z)))) → APPEND1_IN_GA(parts(X, Y), is(sum(Z)))
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U3_ga(L, H, T, append2_in_ag(parts(V, .(H, U)), is(sum(L))))
append2_in_ag(parts([], Y), is(sum(Y))) → append2_out_ag(parts([], Y), is(sum(Y)))
append2_in_ag(parts(.(H, X), Y), is(sum(.(H, Z)))) → U1_ag(H, X, Y, Z, append2_in_ag(parts(X, Y), is(sum(Z))))
U1_ag(H, X, Y, Z, append2_out_ag(parts(X, Y), is(sum(Z)))) → append2_out_ag(parts(.(H, X), Y), is(sum(.(H, Z))))
U3_ga(L, H, T, append2_out_ag(parts(V, .(H, U)), is(sum(L)))) → U4_ga(L, H, T, V, U, append1_in_ga(parts(V, U), is(sum(W))))
append1_in_ga(parts([], Y), is(sum(Y))) → append1_out_ga(parts([], Y), is(sum(Y)))
append1_in_ga(parts(.(H, X), Y), is(sum(.(H, Z)))) → U2_ga(H, X, Y, Z, append1_in_ga(parts(X, Y), is(sum(Z))))
U2_ga(H, X, Y, Z, append1_out_ga(parts(X, Y), is(sum(Z)))) → append1_out_ga(parts(.(H, X), Y), is(sum(.(H, Z))))
U4_ga(L, H, T, V, U, append1_out_ga(parts(V, U), is(sum(W)))) → U5_ga(L, H, T, perm_in_ga(W, T))
U5_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
APPEND1_IN_GA(parts(.(H, X), Y), is(sum(.(H, Z)))) → APPEND1_IN_GA(parts(X, Y), is(sum(Z)))
APPEND1_IN_GA(parts(.(X), Y)) → APPEND1_IN_GA(parts(X, Y))
No rules are removed from R.
APPEND1_IN_GA(parts(.(X), Y)) → APPEND1_IN_GA(parts(X, Y))
POL(.(x1)) = 2·x1
POL(APPEND1_IN_GA(x1)) = 2·x1
POL(parts(x1, x2)) = 2·x1 + x2
APPEND2_IN_AG(parts(.(H, X), Y), is(sum(.(H, Z)))) → APPEND2_IN_AG(parts(X, Y), is(sum(Z)))
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U3_ga(L, H, T, append2_in_ag(parts(V, .(H, U)), is(sum(L))))
append2_in_ag(parts([], Y), is(sum(Y))) → append2_out_ag(parts([], Y), is(sum(Y)))
append2_in_ag(parts(.(H, X), Y), is(sum(.(H, Z)))) → U1_ag(H, X, Y, Z, append2_in_ag(parts(X, Y), is(sum(Z))))
U1_ag(H, X, Y, Z, append2_out_ag(parts(X, Y), is(sum(Z)))) → append2_out_ag(parts(.(H, X), Y), is(sum(.(H, Z))))
U3_ga(L, H, T, append2_out_ag(parts(V, .(H, U)), is(sum(L)))) → U4_ga(L, H, T, V, U, append1_in_ga(parts(V, U), is(sum(W))))
append1_in_ga(parts([], Y), is(sum(Y))) → append1_out_ga(parts([], Y), is(sum(Y)))
append1_in_ga(parts(.(H, X), Y), is(sum(.(H, Z)))) → U2_ga(H, X, Y, Z, append1_in_ga(parts(X, Y), is(sum(Z))))
U2_ga(H, X, Y, Z, append1_out_ga(parts(X, Y), is(sum(Z)))) → append1_out_ga(parts(.(H, X), Y), is(sum(.(H, Z))))
U4_ga(L, H, T, V, U, append1_out_ga(parts(V, U), is(sum(W)))) → U5_ga(L, H, T, perm_in_ga(W, T))
U5_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
APPEND2_IN_AG(parts(.(H, X), Y), is(sum(.(H, Z)))) → APPEND2_IN_AG(parts(X, Y), is(sum(Z)))
APPEND2_IN_AG(is(sum(.(Z)))) → APPEND2_IN_AG(is(sum(Z)))
No rules are removed from R.
APPEND2_IN_AG(is(sum(.(Z)))) → APPEND2_IN_AG(is(sum(Z)))
POL(.(x1)) = 2·x1
POL(APPEND2_IN_AG(x1)) = 2·x1
POL(is(x1)) = 2·x1
POL(sum(x1)) = 2·x1
U3_GA(L, H, T, append2_out_ag(parts(V, .(H, U)), is(sum(L)))) → U4_GA(L, H, T, V, U, append1_in_ga(parts(V, U), is(sum(W))))
U4_GA(L, H, T, V, U, append1_out_ga(parts(V, U), is(sum(W)))) → PERM_IN_GA(W, T)
PERM_IN_GA(L, .(H, T)) → U3_GA(L, H, T, append2_in_ag(parts(V, .(H, U)), is(sum(L))))
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U3_ga(L, H, T, append2_in_ag(parts(V, .(H, U)), is(sum(L))))
append2_in_ag(parts([], Y), is(sum(Y))) → append2_out_ag(parts([], Y), is(sum(Y)))
append2_in_ag(parts(.(H, X), Y), is(sum(.(H, Z)))) → U1_ag(H, X, Y, Z, append2_in_ag(parts(X, Y), is(sum(Z))))
U1_ag(H, X, Y, Z, append2_out_ag(parts(X, Y), is(sum(Z)))) → append2_out_ag(parts(.(H, X), Y), is(sum(.(H, Z))))
U3_ga(L, H, T, append2_out_ag(parts(V, .(H, U)), is(sum(L)))) → U4_ga(L, H, T, V, U, append1_in_ga(parts(V, U), is(sum(W))))
append1_in_ga(parts([], Y), is(sum(Y))) → append1_out_ga(parts([], Y), is(sum(Y)))
append1_in_ga(parts(.(H, X), Y), is(sum(.(H, Z)))) → U2_ga(H, X, Y, Z, append1_in_ga(parts(X, Y), is(sum(Z))))
U2_ga(H, X, Y, Z, append1_out_ga(parts(X, Y), is(sum(Z)))) → append1_out_ga(parts(.(H, X), Y), is(sum(.(H, Z))))
U4_ga(L, H, T, V, U, append1_out_ga(parts(V, U), is(sum(W)))) → U5_ga(L, H, T, perm_in_ga(W, T))
U5_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
U3_GA(L, H, T, append2_out_ag(parts(V, .(H, U)), is(sum(L)))) → U4_GA(L, H, T, V, U, append1_in_ga(parts(V, U), is(sum(W))))
U4_GA(L, H, T, V, U, append1_out_ga(parts(V, U), is(sum(W)))) → PERM_IN_GA(W, T)
PERM_IN_GA(L, .(H, T)) → U3_GA(L, H, T, append2_in_ag(parts(V, .(H, U)), is(sum(L))))
append1_in_ga(parts([], Y), is(sum(Y))) → append1_out_ga(parts([], Y), is(sum(Y)))
append1_in_ga(parts(.(H, X), Y), is(sum(.(H, Z)))) → U2_ga(H, X, Y, Z, append1_in_ga(parts(X, Y), is(sum(Z))))
append2_in_ag(parts([], Y), is(sum(Y))) → append2_out_ag(parts([], Y), is(sum(Y)))
append2_in_ag(parts(.(H, X), Y), is(sum(.(H, Z)))) → U1_ag(H, X, Y, Z, append2_in_ag(parts(X, Y), is(sum(Z))))
U2_ga(H, X, Y, Z, append1_out_ga(parts(X, Y), is(sum(Z)))) → append1_out_ga(parts(.(H, X), Y), is(sum(.(H, Z))))
U1_ag(H, X, Y, Z, append2_out_ag(parts(X, Y), is(sum(Z)))) → append2_out_ag(parts(.(H, X), Y), is(sum(.(H, Z))))
U3_GA(append2_out_ag(parts(V, .(U)))) → U4_GA(append1_in_ga(parts(V, U)))
U4_GA(append1_out_ga(is(sum(W)))) → PERM_IN_GA(W)
PERM_IN_GA(L) → U3_GA(append2_in_ag(is(sum(L))))
append1_in_ga(parts([], Y)) → append1_out_ga(is(sum(Y)))
append1_in_ga(parts(.(X), Y)) → U2_ga(append1_in_ga(parts(X, Y)))
append2_in_ag(is(sum(Y))) → append2_out_ag(parts([], Y))
append2_in_ag(is(sum(.(Z)))) → U1_ag(append2_in_ag(is(sum(Z))))
U2_ga(append1_out_ga(is(sum(Z)))) → append1_out_ga(is(sum(.(Z))))
U1_ag(append2_out_ag(parts(X, Y))) → append2_out_ag(parts(.(X), Y))
append1_in_ga(x0)
append2_in_ag(x0)
U2_ga(x0)
U1_ag(x0)
U3_GA(append2_out_ag(parts(V, .(U)))) → U4_GA(append1_in_ga(parts(V, U)))
U4_GA(append1_out_ga(is(sum(W)))) → PERM_IN_GA(W)
PERM_IN_GA(L) → U3_GA(append2_in_ag(is(sum(L))))
append1_in_ga(parts([], Y)) → append1_out_ga(is(sum(Y)))
append1_in_ga(parts(.(X), Y)) → U2_ga(append1_in_ga(parts(X, Y)))
append2_in_ag(is(sum(Y))) → append2_out_ag(parts([], Y))
append2_in_ag(is(sum(.(Z)))) → U1_ag(append2_in_ag(is(sum(Z))))
U2_ga(append1_out_ga(is(sum(Z)))) → append1_out_ga(is(sum(.(Z))))
U1_ag(append2_out_ag(parts(X, Y))) → append2_out_ag(parts(.(X), Y))
append2inag1 > U1ag1 > is1 > sum1 > U3GA1 > parts2 > .1 > U4GA1 > [] > append1inga1 > U2ga1 > PERMINGA1 > append1outga1 > append2outag1
[]=9
append1_in_ga_1=10
append1_out_ga_1=9
is_1=6
sum_1=6
._1=5
U2_ga_1=5
append2_in_ag_1=6
append2_out_ag_1=4
U1_ag_1=5
U3_GA_1=2
U4_GA_1=1
PERM_IN_GA_1=21
parts_2=3
append1_in_ga(x0)
append2_in_ag(x0)
U2_ga(x0)
U1_ag(x0)